<?php /* Smarty version Smarty-3.1.6, created on 2013-04-07 10:13:57
         compiled from "/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/Client/edit.tpl" */ ?>
<?php /*%%SmartyHeaderCode:7165957345160d665997a66-20804509%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ec3b6701fc026480f1b8fa3116a06e97744427a6' => 
    array (
      0 => '/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/Client/edit.tpl',
      1 => 1364183643,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '7165957345160d665997a66-20804509',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'rs' => 0,
    'lang' => 0,
    'is_auto_no' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5160d665ac2a9',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5160d665ac2a9')) {function content_5160d665ac2a9($_smarty_tpl) {?><?php if (!is_callable('smarty_function_wz')) include '/home/zmx/erp2.1/DzhPHP/FrameWork/Extend/Vendor/Smarty/plugins/function.wz.php';
?><form action="<?php echo U('Client/update');?>
" method="POST" onsubmit="return false">
<?php echo smarty_function_wz(array('action'=>"save,list,reset"),$_smarty_tpl);?>

<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['id'];?>
">
<input type="hidden" name="lock_version" id="lock_version" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['lock_version'];?>
">
<div class="add_box">
<table cellspacing="0" cellpadding="0" class="add_table">
    <tbody>
    	<tr>
    		<th colspan="2"><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_basic'];?>
</th>
    	</tr>
    	<?php if (C('multi_client')==1){?>
    	<tr>
      		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_type'];?>
：</td>
      		<td class="t_left"><?php echo smarty_function_radio(array('data'=>C('CLIENT_TYPE'),'name'=>"detail_type",'value'=>$_smarty_tpl->tpl_vars['rs']->value['detail_type']),$_smarty_tpl);?>
__*__</td>
    	</tr>
    	<?php }?>
     	<tr>
      		<td class="width10"><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_no'];?>
：</td>
      		<td class="t_left"><input type="text" name="comp_no" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['comp_no'];?>
" <?php echo $_smarty_tpl->tpl_vars['is_auto_no']->value;?>
>__*__</td>
    	</tr>
    	<tr>
      		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_name'];?>
：</td>
      		<td class="t_left"><input type="text" name="comp_name" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['comp_name'];?>
" class="spc_input" >__*__</td>
    	</tr>
    	<tr>
      		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['tax_no'];?>
：</td>
      		<td class="t_left"><input type="text" name="tax_no" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['tax_no'];?>
" class="spc_input" ></td>
    	</tr>
     	<tr>
      		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['iva'];?>
：</td>
      		<td class="t_left"><input type="text" name="iva" value="<?php if ($_smarty_tpl->tpl_vars['rs']->value['iva']>0){?><?php echo $_smarty_tpl->tpl_vars['rs']->value['iva'];?>
<?php }?>" class="spc_input" ></td>
    	</tr>
    	<tr>
      		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_country'];?>
：</td>
      		<td class="t_left">
      			<input type="hidden" name="country_id" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['country_id'];?>
" class="spc_input" onchange="getCity(this)">
      			<input type="text" name="temp[country_name]" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['country_name'];?>
" url="<?php echo U('AutoComplete/country');?>
"  jqac />
			</td>
    	</tr>
    	<tr>
      		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_city'];?>
：</td>
      		<td class="t_left">
      			<span id="city">
      				<input type="hidden" name="city_id" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['city_id'];?>
">
      				<input type="text" name="temp[city_name]" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['city_name'];?>
" url="<?php echo U('AutoComplete/city');?>
" where="<?php echo urlencode("parent_id='".($_smarty_tpl->tpl_vars['rs']->value['country_id'])."'");?>
" jqac />
      			</span>
      		</td>
    	</tr> 
    	<tr>
      		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['remind_day'];?>
：</td>
      		<td class="t_left"><input type="text" name="remind_day" value="<?php if ($_smarty_tpl->tpl_vars['rs']->value['remind_day']>0){?><?php echo $_smarty_tpl->tpl_vars['rs']->value['remind_day'];?>
<?php }?>"class="spc_input" ></td>
    	</tr>
    	<tr>
      		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['remind_money'];?>
：</td>
      		<td class="t_left">
      			<input type="text" name="remind_money" value="<?php if ($_smarty_tpl->tpl_vars['rs']->value['edml_remind_money']>0){?><?php echo $_smarty_tpl->tpl_vars['rs']->value['edml_remind_money'];?>
<?php }?>"class="spc_input" >
      		</td>
    	</tr>  
    	<tr>
    		<th colspan="2"><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_cantent'];?>
</th>
    	</tr>
    	<tr>
      		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['contact'];?>
：</td>
      		<td class="t_left"><input type="text" name="contact" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['contact'];?>
" class="spc_input" ></td>
    	</tr>
	    <tr>
      		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['mobile'];?>
：</td>
      		<td class="t_left"><input type="text" name="mobile" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['mobile'];?>
" class="spc_input" ></td>
    	</tr>
    	<tr>
      		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['phone'];?>
：</td>
      		<td class="t_left"><input type="text" name="phone" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['phone'];?>
" class="spc_input" ></td>
    	</tr>
    	<tr>
      		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['zip_code'];?>
：</td>
      		<td class="t_left"><input type="text" name="post_code" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['post_code'];?>
" class="spc_input" ></td>
    	</tr>
    	<tr>
      		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['fax_no'];?>
：</td>
      		<td class="t_left"><input type="text" name="fax" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['fax'];?>
" class="spc_input" ></td>
    	</tr>
    	<tr>
      		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['email'];?>
：</td>
      		<td class="t_left"><input type="text" name="email" value="<?php echo $_smarty_tpl->tpl_vars['rs']->value['email'];?>
" class="spc_input" ></td>
    	</tr>
      	<tr>
      		<td valign="top"><?php echo $_smarty_tpl->tpl_vars['lang']->value['address'];?>
：</td>
      		<td class="t_left"><textarea name="address"><?php echo $_smarty_tpl->tpl_vars['rs']->value['edit_address'];?>
</textarea></td>
    	</tr>
    	<tr>
      		<td valign="top"><?php echo $_smarty_tpl->tpl_vars['lang']->value['comments'];?>
：</td>
      		<td class="t_left"><textarea name="comments"><?php echo $_smarty_tpl->tpl_vars['rs']->value['edit_comments'];?>
</textarea></td>
    	</tr>
	</tbody>
</table>
</form>

<?php }} ?>